package system

import (
	"github.com/gin-gonic/gin"
	"server/api"
)

type RoleRouter struct {
}

//初始化角色路由
func (s *RoleRouter) InitRoleRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	R = Router.Group("sys-role")
	var roleApi = api.ApiGroupApp.SystemApiGroup.RoleApi
	{
		R.GET("index", roleApi.Index)
		R.POST("save", roleApi.Save)
		R.POST("destroy", roleApi.Destroy)
	}
	return
}
